package com.ling.team.domain;

public class Programmer extends Employee{
    private int memberId;
    private String status = Status.Free;
    private Equipment equipment;

    public Programmer(){

    }
    public Programmer(int id, String name, int age, double salary,Equipment equipment) {
        super(id, name, age, salary);
        this.equipment = equipment;
    }



    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }
    protected String getMemberDetails(){
        return memberId + "/" + getDetails();
    }
    public String getDetailsForTeam(){
        return getMemberDetails()+"\t"+"程序员";
    }

    @Override
    public String toString() {
        return getDetails()+"\t"+"程序员\t"
                +status
                +"\t\t\t\t\t\t"
                +equipment;
    }
}
